import datetime
from applications.extensions import db


class Traindata(db.Model):
    __tablename__ = 'admin_traindata'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='警员名称')
    number = db.Column(db.String(20), comment='警员编号')
    date = db.Column(db.String(20), comment='训练日期')
    stime = db.Column(db.String(20), comment='训练开始时间')
    etime = db.Column(db.String(20), comment='训练结束时间')
    train = db.Column(db.String(20), comment='训练项目')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='添加时间')
